home *** CD-ROM | disk | FTP | other *** search
/ Power Hacker 2003 / Power_Hacker_2003.iso / Exploit and vulnerability / w00w00 / sectools / SRS / server / configure.in < prev    next >
Encoding:
Text File  |  2000-01-12  |  1.8 KB  |  100 lines

  1. # Process this file with autoconf to produce a configure script
  2. AC_INIT(src/auth.c)
  3. AC_CONFIG_HEADER(config.h)
  4.  
  5. # Make sure they have a fairly recent version
  6. AC_PREREQ(2.10)
  7.  
  8. AC_CONFIG_AUX_DIR(support)
  9.  
  10. PACKAGE=server
  11. VERSION=1.0
  12. AC_SUBST(PACKAGE)
  13. AC_SUBST(VERSION)
  14.  
  15. # Do stuff with OS
  16. AC_CANONICAL_HOST
  17.  
  18. # Setup some definitions based on the OS
  19. case "$host_os" in
  20. sun*) LDEFS=-DSUN;;
  21. solaris*) LDEFS=-DSUN;;
  22. svr4*) LDEFS=-DSUN;;
  23. sysv*) LDEFS=-DSUN;;
  24. linux*) LDEFS=-DLINUX;;
  25. *bsd*) LDEFS=-DBSD;;
  26. sco*) LDEFS=-DSCO;;
  27. osf*) LDEFS=-DOSF;;
  28. aix*) LDEFS=-DAIX;;
  29. hpux*) LDEFS=-DHPUX;;
  30. dgux*) LDEFS=-DDGUX;;
  31. qnx*) LDEFS=-DQNX;;
  32. next*) LDEFS-DNEXT;;
  33. irix*) LDEFS=-DIRIX;;
  34. *) LDEFS=-DDEFOS;;
  35. esac
  36.  
  37. AC_SUBST(LDEFS)
  38.  
  39. bindir=../bin
  40. AC_SUBST(bindir)
  41.  
  42. AC_ARG_PROGRAM
  43.  
  44. # Checks for programs.
  45. AC_PROG_CC
  46. AC_PROG_INSTALL
  47. AC_PROG_MAKE_SET
  48. AC_PROG_LN_S
  49.  
  50. # Checks the systems.
  51. AC_AIX
  52. AC_ISC_POSIX
  53. AC_MINIX
  54.  
  55. # Checks for libraries.
  56. AC_HAVE_LIBRARY(nsl)
  57. AC_HAVE_LIBRARY(socket)
  58.  
  59. AC_HAVE_LIBRARY(crypto)
  60. AC_HAVE_LIBRARY(ssl)
  61.  
  62. # Probably not needed...
  63. # AC_CHECK_LIB(elf, main)
  64.  
  65. # Checks for header files.
  66. AC_HEADER_STDC
  67. AC_HEADER_TIME
  68. AC_HEADER_SYS_WAIT
  69.  
  70. AC_SYS_RESTARTABLE_SYSCALLS
  71.  
  72. AC_CHECK_HEADERS(asm/page.h compat.h db.h fcntl.h features.h getopt.h \
  73. kvm.h limits.h malloc.h memory.h paths.h posix_opt.h sys/select.h     \
  74. sys/shm.h sys/time.h sys/times.h syslog.h unistd.h utime.h)
  75.  
  76. # Checks for typedefs, structures, and compiler characteristics.
  77. AC_C_CONST
  78.  
  79. AC_STRUCT_TM
  80. AC_STRUCT_TIMEZONE
  81.  
  82. AC_TYPE_UID_T
  83. AC_TYPE_PID_T
  84. AC_TYPE_SIZE_T
  85.  
  86. AC_TYPE_SIGNAL
  87.  
  88. # Checks for library functions.
  89. AC_FUNC_MMAP
  90. AC_FUNC_VPRINTF
  91. AC_FUNC_GETLOADAVG
  92.  
  93. # AC_SUBST(host_os)
  94.  
  95. AC_CHECK_FUNCS(getcwd gethostname memcpy mkdir select setreuid shmat \
  96. shmctl shmdt shmget socket strerror strstr)
  97.  
  98. AC_OUTPUT(Makefile src/Makefile, 
  99. [test -z "$CONFIG_HEADERS" || date > stamp-h])
  100.